
// MainFrm.h : interface of the CMainFrame class
//

#pragma once

#include "UIMain.h"

class CMainFrame : public CFrameWndEx
{
private:
	CUIMain*		m_pUIMain;

	BOOL			m_bCreated;

public: // create from serialization only
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)

// Attributes
public:

// Operations
public:

// Overrides
public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

// Implementation
public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // control bar embedded members
	CMFCMenuBar       m_wndMenuBar;
	CMFCToolBar       m_wndToolBar;

// Generated message map functions
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	DECLARE_MESSAGE_MAP()

public:
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnMove(int x, int y);
	virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);

private:
	void KeyControl(WORD wFlag, WORD wKey);
public:
	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnFileOpen();
	afx_msg void OnPrintPreview();
	afx_msg void OnBackup();
	afx_msg void OnSetup();
	afx_msg void OnViewerSetup();
	afx_msg void OnMaximize();
	afx_msg void OnFullScreen();
	afx_msg void OnDelete();
	afx_msg void OnOemPlus();
	afx_msg void OnOemMinus();
	afx_msg void OnHtmlHelp();
};

extern CMainFrame* g_pMainFrame;